<?php
$connect = mysql_connect('localhost','root','');
mysql_select_db("ajaxadmintool");
error_reporting(E_ALL ^ E_NOTICE);
session_start();
?>
<?php
if($_SESSION["loggedin"]==true && $_SESSION["role"]==admin)
{
if(isset($_SESSION[msg]))
{
echo $_SESSION[msg];
unset($_SESSION[msg]);
}
?>

<?php
//print_r($_POST);
$client = $_GET[value];

$select = "SELECT * from client WHERE clientname like '%$client%'";
$client1 = mysql_query($select);
?><ul style="list-style: none outside none; margin: 0px; padding: 0px;"><?php
while($clientrow = mysql_fetch_array($client1))
{
?><li id="<?php
echo $clientrow[clientid]; ?>"><?php
echo $clientrow[clientname];

?></li>

<?php
}
?><ul><?php


}
else
{
header("Location: login.php");
}
?>